home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / c_lang / strpp31.zip / FILESTR.H < prev    next >
C/C++ Source or Header  |  1994-04-18  |  1KB  |  38 lines

  1. /* -------------------------------------------------------------------- */
  2. /* String++ Version 3.10                                       04/13/94 */
  3. /*                                                                      */
  4. /* Enhanced string class for Turbo C++/Borland C++.                     */
  5. /* Copyright 1991-1994 by Carl W. Moreland                              */
  6. /*                                                                      */
  7. /* filestr.h                                                            */
  8. /* -------------------------------------------------------------------- */
  9. /* Class for decomposing a filespec into its drive, path, name, and     */
  10. /* extension.                                                           */
  11. /* -------------------------------------------------------------------- */
  12.  
  13. #ifndef _FILESTR_H
  14. #define _FILESTR_H
  15.  
  16. #include "str.h"
  17.  
  18. class FileString
  19. {
  20. public:
  21.   StrPP Drive;            // Ex: "C:"
  22.   StrPP Path;            // Ex: "\BC\CLASSLIB\INCLUDE"
  23.   StrPP FileName;        // Ex: "STRNG.H"
  24.   StrPP Name;            // Ex: "STRNG"
  25.   StrPP Ext;            // Ex: "H"
  26.  
  27.   FileString(void) {};
  28.   FileString(const char*);
  29.   FileString(const StrPP&);
  30.   void operator=(const char*);
  31.   void operator=(const StrPP&);
  32.  
  33. private:
  34.   virtual void Process(const StrPP&);
  35. };
  36.  
  37. #endif
  38.